<div class="hero-unit">
<h3>修改课程安排</h3>
<input type="hidden" value="<?=$base?>"  id="base" />
<form id="add_form" onsubmit="return add_form();" action="<?=$base?>admin/course/course_plan_update" method="post">
<div class="row-fluid">
    <div class="span4">
        <input type="hidden" name="id" value="<?=$course_plan_list[0]->id?>" />
        <label for='name'>课程：</label>
        <input id="name" name="name" type="text" value="<?=$name?>" readonly/>
    </div>
    <div class="span4">
        <label for="timeLong">上课周次：</label>
        <input id="timeLong" name="timeLong" type="text" value="<?=$course_plan_list[0]->timeLong?>" required /><br/>
        <label for="weekday">星期：</label>
            <select id="weekday" name="weekday" required>
                <option value=''></option>
                <?php foreach($weekday as $key=>$value):?>
                    <option value="<?=$key?>" <?php if($key==$course_plan_list[0]->weekday):?>selected<?php endif;?>><?=$value?></option>
                <?php endforeach;?>
            </select><br/>
         <label for="section">第几节</label>
            <select id="section" name="section" required>
                <option value=''></option>
                <?php foreach($section as $key=>$value):?>
                    <option value="<?=$key?>" <?php if($key==$course_plan_list[0]->section):?>selected<?php endif;?>><?=$value?></option>
                <?php endforeach;?>
            </select><br/>
    </div>
    <div class="span4">
        <label for="place">上课地点：</label>
        <input id="place" name="place" type="text" value="<?=$course_plan_list[0]->place?>" required /><br/>
        <label for="count">总数：</label><input type="text" id="count" name="count" value="<?=$course_plan_list[0]->count?>" required><br/>
    </div>
    </div>
    <div class="row-fluid">
     <input type="submit" value="修改" />
    </div>
</form>
</div>